import EC from "../Managers/EventCenter";
import { SM } from "../Managers/SoundManager";
import { E_RefreshSetting } from "./CommonEventConst";

export default class Setting {
    private static _isShake: boolean = false;
    public static get isShake() { return this._isShake; }
    public static set isShake(val: boolean) {
        this._isShake = val;
        EC.send(E_RefreshSetting);
    }

    public static get isActiveMusic() { return SM.activeMusic; }
    public static set isActiveMusic(val: boolean) { SM.switchMusic(val); }

    public static get isActiveEffect() { return SM.activeEffect; }
    public static set isActiveEffect(val: boolean) { SM.switchEffect(val); }

}